package com.wans.guli.product.feign;

import com.wans.guli.common.utils.R;
import com.wans.guli.product.feign.vo.SearchSkuEsRestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "guli-search", path = "/guli-search")
public interface SearchFeignClient {

    @PostMapping("/es/product/save")
    R save(@RequestBody List<SearchSkuEsRestVO> searchSkuEsRestVOList);
}
